#include "main.h"

int checkSign (FILE * arc)
{
	char a[] = _SIGN;
	char buf[8];
	int rc = 0;
	fseek (arc,0,SEEK_SET);
	if ((rc = fread(buf,sizeof(char),7,arc)) == 7)	{
		buf[7] = 0;
		if (!(strcmp (a,buf)))	return 0;
	}
	return -1;
}